<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
	<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="../../css/common.css"/>
	<script src="../../js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<div class="page-header">
				<h1>
					文章列表 <small>Article list </small>
				</h1>
			</div>
			<nav class="navbar navbar-default navbar-inverse" role="navigation">
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li>
							 <a href="./index.php">首页</a>
						</li>
						<li>
							 <a href="./catlist.php">栏目列表</a>
						</li>
						<li>
							 <a href="./catadd.php">增加栏目</a>
						</li>
						<li>
							 <a href="./artlist.php">文章列表</a>
						</li>
						<li>
							 <a href="./artadd.php">增加文章</a>
						</li>
					</ul>
				</div>
			</nav>
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-4 column">
			<div class="aside">
				<h4>栏目管理</h4>
				<ul>
					<li><a href="">栏目列表</a></li>
					<li><a href="">添加栏目</a></li>
				</ul>
			</div>
			
			<div class="aside">
				<h4>文章管理</h4>
				<ul>
					<li><a href="">文章列表</a></li>
					<li><a href="">发布文章</a></li>
				</ul>
			</div>
			<div class="aside">
				<h4>个人中心</h4>
				<ul>
					<li><a href="">栏目列表</a></li>
					<li><a href="">添加栏目</a></li>
					<li><a href="./logout.php">退出登录</a></li>
				</ul>
			</div>
		</div>
		<div class="col-md-8 column">
			<table class="table">
				<thead>
					<tr>
						<th>序号</th>
						<th>日期</th>
						<th>标题</th>
						<th>分类</th>
						<th>回复</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody>
					<?php foreach($arts as $a) {?>
					<tr>
						<td><?php echo $a['art_id'];?></td>
						<td><?php echo date('Y/m/d',$a['pubtime']);?></td>
						<td><a href="art.php?art_id=<?php echo $a['art_id']; ?>"><?php echo $a['title'];?></a></td>
						<td><?php echo $a['catname'];?></td>
						<td><?php echo $a['comm'];?></td>
						<td>
							<a class="btn btn-warning" href="artedit.php?art_id=<?php echo $a['art_id'];?>">编辑</a>
							<a class="btn btn-danger" href="artdel.php?art_id=<?php echo $a['art_id'];?>">删除</a>
						</td>
					</tr>
					<?php }?>
				</tbody>
			</table>
			
			<ul class="pagination">
				<li>
					 <a href="#">Prev</a>
				</li>
				<li>
					 <a href="#">1</a>
				</li>
				<li>
					 <a href="#">2</a>
				</li>
				<li>
					 <a href="#">3</a>
				</li>
				<li>
					 <a href="#">4</a>
				</li>
				<li>
					 <a href="#">5</a>
				</li>
				<li>
					 <a href="#">Next</a>
				</li>
			</ul>
			
		</div>
	</div>
</div>
</body>
</html>